//用户相关接口的管理
import $http from '@/service/request.js'

//存储用户评论
//接口：/stick/usertalk
//POST
export const _usertalk = ({account_user,acc_user,talk_user,image1,image2,image3,image4,image5,image6}) =>{
	return $http.request({
		url:'/sticks/usertalk',
		method:'POST',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			account_user,
			acc_user,
			talk_user,
			image1,
			image2,
			image3,
			image4,
			image5,
			image6
		}
	})
}


//查询讨论
//接口：/stick/getbyascription
//GET
export const _getbyascription = () =>{
	return $http.request({
		url:'/sticks/getbyascription',
		method:'GET',
		header:{
			"Content-Type":"application/json"
		}
	})
}

//用户确认点赞
//接口：/stick/talkaddlike
//PUT
export const _talkaddlike = ({talk_number}) =>{
	return $http.request({
		url:'/sticks/talkaddlike',
		method:'PUT',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			talk_number
		}
	})
}

//用户取消点赞
//接口：/stick/talkminslike
//PUT
export const _talkminslike = ({talk_number}) =>{
	return $http.request({
		url:'/sticks/talkminslike',
		method:'PUT',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			talk_number
		}
	})
}

//用户确认收藏
//接口：/stick/talkaddcollection
//PUT
export const _talkaddcollection = ({talk_number}) =>{
	return $http.request({
		url:'/sticks/talkaddcollection',
		method:'PUT',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			talk_number
		}
	})
}


//用户取消收藏
//接口：/stick/talkminscollection
//PUT
export const _talkminscollection = ({talk_number}) =>{
	return $http.request({
		url:'/sticks/talkminscollection',
		method:'PUT',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			talk_number
		}
	})
}


//存储用户讨论
//接口：/stick/talksearch
//PUT
export const _talksearch = ({talk_number}) =>{
	return $http.request({
		url:'/sticks/talksearch',
		method:'POST',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			talk_number
		}
	})
}
